<!DOCTYPE html>
<html>
<head>
    <th:block th:include="include :: headermain('互助保障系统')"/>
    <title>单位资料-互助保障系统</title>
    <script type="text/javascript">if (!!window.ActiveXObject || "ActiveXObject" in window) location.href = '/Unit/Browser';</script>



</head>
<body>

<div class="page">

    <th:block th:include="include :: top"/>


    <div class="center">
        <div class="page-content page-wrap">
            <th:block th:include="include :: left"/>
            <div class="page-wrap-container">

                <div class="">
                    <div class="">
                        <div class="page-advice">

                            <div class="page-tab">
                                <a  href="/hzhelp/advice/hzHelpAdvice/form">提交问题</a>
                                <a class="on" href="/hzhelp/advice/hzHelpAdvice/adviceList">我的问题</a>
                            </div>

                            <table class="page-table">
                                <tr>
                                    <th>问题内容</th>
                                    <td colspan="3">${hzHelpAdvice.content}</td>
                                </tr>
                                <tr>
                                    <th>联系人</th>
                                    <td>${hzHelpAdvice.contact}</td>
                                    <th>问题类型</th>
                                    <td>${hzHelpAdvice.typeName}</td>
                                </tr>
                                <tr>
                                    <th>处理状态</th>
                                    <td>
                                        ${hzHelpAdvice.status == 1?'待处理':hzHelpAdvice.status == 2?'已受理':'已解决'}
                                    </td>
                                    <th>提交时间</th>
                                    <td><fmt:formatDate value="${hzHelpAdvice.createDate}" pattern="yyyy-MM-dd HH:mm:ss" /></td>
                                </tr>
                            </table>

                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>


    <th:block th:include="include :: footer"/>

</div>




<script src="/footerjs.js"></script>

<script type="text/javascript">

    $(".layui-btn").click(function () {
        $.soon.ajax({
            url: "/UnitHelp/AdviceSubmit",
            data: $(".page-form").serialize(),
            success: function (data) {
                if (data.State) {
                    layer.alert("登记成功，工作人员将及时处理并告知您处理结果，请保证您的电话畅通", function () {
                        window.location.reload();
                    });
                } else {
                    layer.msg(data.Message);
                }
            }
        });
    });


</script>


</body>
</html>
